package com.example.blank.serivce;

import com.example.blank.bean.CategoryModel;
import com.example.blank.common.BusinessException;

import java.util.List;

public interface CategoryService {

    CategoryModel create(CategoryModel categoryModel) throws BusinessException;
    CategoryModel get(Integer id);
    List<CategoryModel> selectAll();

    Integer countAllCategory();
}
